Update Plan
Update the details of an existing subscription plan
POST
https://api.spotflow.co/api/v1/plans/:plan-id
Headers
authorization |
|
---|---|
content-type String | application/json |
Path Parameters
plan-id int32
This is the unique ID
of the subscription plan you want to update.
Body Parameters
title | Name/Title of plan |
---|---|
amount Integer | Amount should be in the subunit of our supported currency i.e your local currency or USD. |
currency String | Select the currency for the charges. Can either be in USD or in the local currency of your collection region. |
Sample Request Body
{
"title": "Navigately Mini" //formerly Audioly
}
Sample Response
200 OK
{
"id": "3cbab046-f06a-4815-941d-d8cc7be43d59",
"title": "Navigately Mini",
"frequency": "DAILY",
"internalReference": "test",
"amount": 70,
"currency": "USD",
"status": "active",
"createdAt": "2024-07-23T12:17:45Z"
}